EMTool
Class EMForm

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by EMTool.EMForm
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class EMForm
extends javax.swing.JFrame

This is code generated by the Netbeans Form Editor. Much of the code is unchanged. The methods that contain functionality specific to this sample are documented below.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JButton btnClear
           
private  javax.swing.JButton btnLogin
           
private  javax.swing.JButton btnLogout
           
private  javax.swing.JButton btnQueryDevices
           
private  javax.swing.JButton btnQueryUsers
           
private  javax.swing.ButtonGroup buttonGroup1
           
private  javax.swing.JCheckBox chkAutoLogout
           
private  javax.swing.JCheckBox chkConsole
           
private  javax.swing.JCheckBox chkResults
           
(package private)  EMInterface emInterface
           
private  javax.swing.JPanel jPanel1
           
private  javax.swing.JPanel jPanel3
           
private  javax.swing.JScrollPane jScrollPane1
           
private  javax.swing.JScrollPane jScrollPane2
           
private  javax.swing.JLabel lblDeviceName
           
private  javax.swing.JLabel lblMinutes
           
private  javax.swing.JLabel lblProfileName
           
private  javax.swing.JLabel lblServerIP
           
private  javax.swing.JLabel lblServerPassword
           
private  javax.swing.JLabel lblServerUserID
           
private  javax.swing.JLabel lblUserID
           
private  javax.swing.JPanel pnlConsole
           
private  javax.swing.JPanel pnlCUCM
           
private  javax.swing.JPanel pnlResults
           
private  javax.swing.JPanel pnlUser
           
private  javax.swing.JRadioButton rdoDTD
           
private  javax.swing.JRadioButton rdoRawText
           
private  javax.swing.JTextArea txtAreaConsole
           
private  javax.swing.JTextArea txtAreaResults
           
private  javax.swing.JTextField txtDeviceName
           
private  javax.swing.JTextField txtMinutes
           
private  javax.swing.JTextField txtProfileName
           
private  javax.swing.JTextField txtServerIP
           
private  javax.swing.JTextField txtServerPassword
           
private  javax.swing.JTextField txtServerUserID
           
private  javax.swing.JTextField txtUserID
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
EMForm()
          Creates new form EMForm
 
Method Summary
private  void btnClearActionPerformed(java.awt.event.ActionEvent evt)
          Executes when the Clear button in the console panel is pressed.
private  void btnLoginActionPerformed(java.awt.event.ActionEvent evt)
          Executes when Login button is pressed.
private  void btnLogoutActionPerformed(java.awt.event.ActionEvent evt)
          Executes when Logout button is pressed.
private  void btnQueryDevicesActionPerformed(java.awt.event.ActionEvent evt)
          Executes when Query Device button is pressed.
private  void btnQueryUsersActionPerformed(java.awt.event.ActionEvent evt)
          Executes when Query User button is pressed.
private  void chkAutoLogoutActionPerformed(java.awt.event.ActionEvent evt)
          Executes when the Auto Logout check box is selected/deslected.
private  void chkConsoleActionPerformed(java.awt.event.ActionEvent evt)
          Executes when the Show Console check box is selected/deslected.
private  void chkResultsActionPerformed(java.awt.event.ActionEvent evt)
          Executes when the Show Results check box is selected/deslected.
private  void initComponents()
          This method is called from within the constructor to initialize the form.
static void main(java.lang.String[] args)
          Main entry point for this application.
private  void rdoDTDActionPerformed(java.awt.event.ActionEvent evt)
          Executes when DTD/JAXB radio button is selected.
private  void rdoRawTextActionPerformed(java.awt.event.ActionEvent evt)
          Executes when Raw Text radio button is selected.
private  void txtDeviceNameActionPerformed(java.awt.event.ActionEvent evt)
           
private  void txtProfileNameActionPerformed(java.awt.event.ActionEvent evt)
           
private  void txtServerIPActionPerformed(java.awt.event.ActionEvent evt)
           
private  void txtServerUserIDActionPerformed(java.awt.event.ActionEvent evt)
           
private  void txtUserIDActionPerformed(java.awt.event.ActionEvent evt)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

emInterface

EMInterface emInterface

btnClear

private javax.swing.JButton btnClear

btnLogin

private javax.swing.JButton btnLogin

btnLogout

private javax.swing.JButton btnLogout

btnQueryDevices

private javax.swing.JButton btnQueryDevices

btnQueryUsers

private javax.swing.JButton btnQueryUsers

buttonGroup1

private javax.swing.ButtonGroup buttonGroup1

chkAutoLogout

private javax.swing.JCheckBox chkAutoLogout

chkConsole

private javax.swing.JCheckBox chkConsole

chkResults

private javax.swing.JCheckBox chkResults

jPanel1

private javax.swing.JPanel jPanel1

jPanel3

private javax.swing.JPanel jPanel3

jScrollPane1

private javax.swing.JScrollPane jScrollPane1

jScrollPane2

private javax.swing.JScrollPane jScrollPane2

lblDeviceName

private javax.swing.JLabel lblDeviceName

lblMinutes

private javax.swing.JLabel lblMinutes

lblProfileName

private javax.swing.JLabel lblProfileName

lblServerIP

private javax.swing.JLabel lblServerIP

lblServerPassword

private javax.swing.JLabel lblServerPassword

lblServerUserID

private javax.swing.JLabel lblServerUserID

lblUserID

private javax.swing.JLabel lblUserID

pnlCUCM

private javax.swing.JPanel pnlCUCM

pnlConsole

private javax.swing.JPanel pnlConsole

pnlResults

private javax.swing.JPanel pnlResults

pnlUser

private javax.swing.JPanel pnlUser

rdoDTD

private javax.swing.JRadioButton rdoDTD

rdoRawText

private javax.swing.JRadioButton rdoRawText

txtAreaConsole

private javax.swing.JTextArea txtAreaConsole

txtAreaResults

private javax.swing.JTextArea txtAreaResults

txtDeviceName

private javax.swing.JTextField txtDeviceName

txtMinutes

private javax.swing.JTextField txtMinutes

txtProfileName

private javax.swing.JTextField txtProfileName

txtServerIP

private javax.swing.JTextField txtServerIP

txtServerPassword

private javax.swing.JTextField txtServerPassword

txtServerUserID

private javax.swing.JTextField txtServerUserID

txtUserID

private javax.swing.JTextField txtUserID
Constructor Detail

EMForm

public EMForm()
Creates new form EMForm

Method Detail

initComponents

private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.


txtUserIDActionPerformed

private void txtUserIDActionPerformed(java.awt.event.ActionEvent evt)

txtServerIPActionPerformed

private void txtServerIPActionPerformed(java.awt.event.ActionEvent evt)

btnLoginActionPerformed

private void btnLoginActionPerformed(java.awt.event.ActionEvent evt)
Executes when Login button is pressed. The EMInterface instance is initialized with values from the appropriate fields. Then it determines if auto logout is selected and if it is, initializes the duration. The EMInterface EMInterface.login(java.lang.String, java.lang.String, java.lang.String, java.lang.String) method is then called with the paramters collected from the appropriate fields. The results of the login method are displayed in the results text area.

Parameters:
evt -

txtDeviceNameActionPerformed

private void txtDeviceNameActionPerformed(java.awt.event.ActionEvent evt)

btnLogoutActionPerformed

private void btnLogoutActionPerformed(java.awt.event.ActionEvent evt)
Executes when Logout button is pressed. The EMInterface instance is initialized with values from the appropriate fields. The EMInterface EMInterface.logout(java.lang.String) method is then called with the paramters collected from the appropriate fields. The results of the logout method are displayed in the results text area.

Parameters:
evt -

txtProfileNameActionPerformed

private void txtProfileNameActionPerformed(java.awt.event.ActionEvent evt)

btnQueryDevicesActionPerformed

private void btnQueryDevicesActionPerformed(java.awt.event.ActionEvent evt)
Executes when Query Device button is pressed. The EMInterface instance is initialized with values from the appropriate fields. The EMInterface EMInterface.queryDevice(java.lang.String) method is then called with the paramters collected from the appropriate fields. The results of the queryDevice method are displayed in the results text area.

Parameters:
evt -

btnQueryUsersActionPerformed

private void btnQueryUsersActionPerformed(java.awt.event.ActionEvent evt)
Executes when Query User button is pressed. The EMInterface instance is initialized with values from the appropriate fields. The EMInterface EMInterface.queryUser(java.lang.String) method is then called with the paramters collected from the appropriate fields. The results of the queryUsers method are displayed in the results text area.

Parameters:
evt -

chkConsoleActionPerformed

private void chkConsoleActionPerformed(java.awt.event.ActionEvent evt)
Executes when the Show Console check box is selected/deslected. The console object is activated/deactivated and the visible component of the console is shown/hidden as appropriate.

Parameters:
evt -

chkResultsActionPerformed

private void chkResultsActionPerformed(java.awt.event.ActionEvent evt)
Executes when the Show Results check box is selected/deslected. The results Panel is shown/hidden as appropriate.

Parameters:
evt -

btnClearActionPerformed

private void btnClearActionPerformed(java.awt.event.ActionEvent evt)
Executes when the Clear button in the console panel is pressed. When pressed, the contents of the console are cleared.

Parameters:
evt -

rdoRawTextActionPerformed

private void rdoRawTextActionPerformed(java.awt.event.ActionEvent evt)
Executes when Raw Text radio button is selected. The existing EMInterface instance is destroyed and the appropriate EMInterface instance is constructed.

Parameters:
evt -

rdoDTDActionPerformed

private void rdoDTDActionPerformed(java.awt.event.ActionEvent evt)
Executes when DTD/JAXB radio button is selected. The existing EMInterface instance is destroyed and the appropriate EMInterface instance is constructed.

Parameters:
evt -

txtServerUserIDActionPerformed

private void txtServerUserIDActionPerformed(java.awt.event.ActionEvent evt)

chkAutoLogoutActionPerformed

private void chkAutoLogoutActionPerformed(java.awt.event.ActionEvent evt)
Executes when the Auto Logout check box is selected/deslected. The minutes abel and text items are enabled/disabled as appropriate.

Parameters:
evt -

main

public static void main(java.lang.String[] args)
Main entry point for this application.

Parameters:
args - the command line arguments